package com.burstly.lib.component.networkcomponent.burstly.html;

import com.burstly.lib.component.IBurstlyAdaptorListener;

public class SimpleRichMediaListener extends EmptyRichMediaAdListener
{
  private final IBurstlyAdaptorListener mAdaptorListener;
  private final String mNetworkName;
  private StatisticsSender mStatisticsSender;

  SimpleRichMediaListener(IBurstlyAdaptorListener paramIBurstlyAdaptorListener, String paramString, StatisticsSender paramStatisticsSender)
  {
    this.mAdaptorListener = paramIBurstlyAdaptorListener;
    this.mNetworkName = paramString;
    this.mStatisticsSender = paramStatisticsSender;
  }

  StatisticsSender getStatisticsSender()
  {
    return this.mStatisticsSender;
  }

  public boolean onExpand()
  {
    this.mAdaptorListener.onExpand(this.mNetworkName, true);
    this.mStatisticsSender.sendEvent("expand");
    return super.onExpand();
  }

  public boolean onExpandClose()
  {
    this.mAdaptorListener.onCollapse(this.mNetworkName);
    this.mStatisticsSender.sendEvent("close");
    return super.onExpandClose();
  }

  public void onHide()
  {
    super.onHide();
    this.mStatisticsSender.sendEvent("hide");
    this.mAdaptorListener.onHide(this.mNetworkName);
  }

  public boolean onResize()
  {
    this.mStatisticsSender.sendEvent("resize");
    return super.onResize();
  }

  public void onShow()
  {
    super.onShow();
    this.mStatisticsSender.sendEvent("show");
    this.mAdaptorListener.onShow(this.mNetworkName);
  }

  public void setStatisticsSender(StatisticsSender paramStatisticsSender)
  {
    this.mStatisticsSender = paramStatisticsSender;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.SimpleRichMediaListener
 * JD-Core Version:    0.6.2
 */